﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace INSTA.AI97.Samples.Sample01
{
    /// <summary>
    /// Represents a Person.
    /// </summary>
    public class Person
    {
        private string _name;


        public string Name
        {
            get { return _name;     }

            // value représente la valeur passée.
            set { _name = value.ToUpper();    }
        }



        // Approche getters/ setters (java)..

        //public void setName(string name)
        //{
        //    _name = name.ToUpper();
        //}

        //public string getName()
        //{
        //    return _name;
        //}

    }
}
